<template>
  <h1>事件绑定流量</h1>
  <button @click="f">按钮</button>
  <button v-on:click="f">按钮</button>

  <h3>敲回车事件</h3>
  <input type="text" placeholder="点击ys脑袋"
          @keydown.enter="f2">
</template>
<script setup>
const f=()=>{
  console.log('点击了！')
}
const f2=()=>{
  console.log('点击了ys的脑袋！')
}
</script>


<style scoped>

</style>